package com.example.sendmessage.common;

/**
 * 自定义应用层协议，自定应客户端请求
 * 请求类型 + 请求内容长度 + 请求内容
 * 4字节     4字节
 */
public class Request {
    private int type;
    private int length;
    private byte[] payload;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public byte[] getPayload() {
        return payload;
    }

    public void setPayload(byte[] payload) {
        this.payload = payload;
    }

}
